<template>
    <view style="padding: 30rpx">
        <view v-html="text"></view>
    </view>
</template>

<script>
import { article } from '@/utils/my.js';
export default {
    data() {
        return {
            text: ''
        };
    },
    async onLoad(options) {
        console.log(options);
        if (options.type == 1) {
            uni.setNavigationBarTitle({
                title: '用户协议'
            });
            const res = await article({ type: options.type });
            this.text = res.data.content;
            return;
        }
        const res = await article({ type: options.type });
        this.text = res.data.content;
    },
    methods: {}
};
</script>

<style></style>
